<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/8/13
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>


<div>
    <form  method="post" enctype="multipart/form-data">


        <input type="hidden" name="id" value="${requestScope.dataSet.id}">

        <table style="padding-left: 20px; width: 350px; margin: 20px 30px">
            <tr>
                <td style="width: 60px">名称:</td>
                <td><input name="name" type="text" class="easyui-textbox" data-options="required:true" value="${requestScope.dataSet.name}"/></td>
            </tr>

            <tr>
                <td>机构:</td>
                <td>
                    <select name="org"  class="easyui-combobox" style="width: 156px">
                        <c:forEach items="${requestScope.orgs}" var="org">
                            <option value="${org.id}"   <c:if test="${requestScope.dataSet.org.id==org.id}">selected="selected" </c:if> >${org.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>


            <tr>
                <td>主题:</td>
                <td>
                    <select name="theme"  class="easyui-combobox" style="width: 156px" >
                        <c:forEach items="${requestScope.themes}" var="theme">
                            <option value="${theme.id}"  <c:if test="${requestScope.dataSet.theme.id==theme.id}">selected="selected" </c:if> >${theme.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>


            <tr>
                <td>简介:</td>
                <td><input name="description" class="easyui-textbox" style="height: 100px" data-options="multiline:true"  value="${requestScope.dataSet.description}" ></td>
            </tr>
        </table>



    </form>


    <div style="text-align:center;padding:18px;">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="dataset_.modifySubmit(this);">保 存</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.formClear(this);">清 空</a>
    </div>

</div>



